package cn.iocoder.yudao.module.erp.controller.admin.suppliersendorderitem.vo;

import cn.iocoder.yudao.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - ERP 随货同行单项分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SupplierSendOrderItemPageReqVO extends PageParam {

    @Schema(description = "随货同行单编号", example = "31472")
    private String outOrderId;

    @Schema(description = "产品编号", example = "18395")
    private Long productId;

    @Schema(description = "产品单位")
    private Long productUnit;

    @Schema(description = "产品规格")
    private String productStandards;

    @Schema(description = "产品单价", example = "16164")
    private BigDecimal productPrice;

    @Schema(description = "批次")
    private String batch;

    @Schema(description = "有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] validityDate;

    @Schema(description = "数量", example = "3581")
    private BigDecimal count;

    @Schema(description = "实际入库数量", example = "5964")
    private BigDecimal inCount;

    @Schema(description = "总价", example = "16898")
    private BigDecimal totalPrice;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "产品单位")
    private Long productUnitId;

    @Schema(description = "产品单位")
    private String productUnitName;

    @Schema(description = "产品分类")
    private Long productCategoryId;

    @Schema(description = "产品分类")
    private String productCategoryName;
}